/**
 * <p>检查不为空</p>
 * @param obj 对象
 * @param fieldName 字段名
 * @author starshine 小郭
 */
export function notNull (obj: any, fieldName: string): boolean {
    if (!obj)
        return false
    if (!fieldName)
        return false
    if (!obj[fieldName])
        return false
    if (typeof obj[fieldName] === "string"){
        return obj[fieldName].trim() != ""
    }
    if (typeof obj[fieldName] === "number"){
        return obj[fieldName] >= 0
    }
    return true
}
